From: Florian Müllner Date: Fri, 3 Oct 2014 12:46:36 +0000 (+0200) Subject: screencast: Properly stop all recordings on session mode changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2055 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0035de4ab70291a0f739c157a27d63a9dbeabd42;p=gnome-shell.git screencast: Properly stop all recordings on session mode changes We currently just clear out the map of recorders (which results in the top bar indicator to be hidden), but don't stop the actual recordings. Spotted by Adel Gadllah on IRC. --- diff --git a/js/ui/screencast.js b/js/ui/screencast.js index e2fb8c8de..d1ccc5be7 100644 --- a/js/ui/screencast.js +++ b/js/ui/screencast.js @@ -68,8 +68,8 @@ const ScreencastService = new Lang.Class({ if (Main.sessionMode.allowScreencast) return; - this._recorders.clear(); - this.emit('updated'); + for (let sender of this._recorders.keys()) + this._stopRecordingForSender(sender); }, _onNameVanished: function(connection, name) {